<meta charset="utf-8" />
<script>
var count=0;
var arr=["America","Greece","Britain","Canada","China","Egypt"];
for(var i=0;i<arr.length;i++){
      if(arr[i].indexOf("A")>=0||arr[i].indexOf("a")>=0){
               count++;
      }  
}
alert(count);

   


</script>